#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "calc.h"
int main(int argc, char * argv[])
{
	int a = 0;
	int b = 0;
	int c = 0;
	char buf[100];
	printf("hello world!\n");

	a = atoi(argv[1]);
	b = atoi(argv[2]);
	c = add(a,b);
	sprintf(buf,"add:%d + %d = %d \n",a,b,c);
	printf("%s",buf);
	c = sub(a,b);
	sprintf(buf,"sub:%d - %d = %d \n",a,b,c);
	printf("%s",buf);
	c = mul(a,b);
	sprintf(buf,"mul:%d X %d = %d \n",a,b,c);
	printf("%s",buf);
	c = mydiv(a,b);
	sprintf(buf,"div:%d / %d = %d \n",a,b,c);
	printf("%s",buf);
	return 0;
}
